#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    char ch = { 0 };
    scanf("%c", &ch);
    printf("%d\n", ch);
    return 0;
}